package cn.itsource.ymcc.service;


import cn.itsource.ymcc.domain.KillCourse;
import cn.itsource.ymcc.dto.KillParamDto;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yaosang
 * @since 2021-09-29
 */
public interface IKillCourseService extends IService<KillCourse> {

    void add(KillCourse killCourse);

    //根据ID查询已经发布的秒杀课程
    KillCourse getOnlineKillCourseById(Long id);

    //查询所有已经发布的秒杀课程
    List getOnlineAllKillCourse();

    String kill(KillParamDto killParamDto);

    void removeKillCourseFromRedis();

    void publishKillActivity();
}
